//
//  UrlImageButton.h
//  test image
//
//  Created by Xuyan Yang on 8/06/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SDWebImageCompat.h"
#import "SDWebImageManagerDelegate.h"

typedef void (^GridentAnimation)();

@interface UrlImageView : UIImageView <SDWebImageManagerDelegate> {	
	NSInteger iconIndex;

	CGSize scaleSize;
	BOOL    isScale;

	BOOL    _animated;
     CGRect frame_final;
    BOOL isLoad;
    
    
    NSArray *sizeDestArray;
    NSArray *sizeArray;
}
@property (nonatomic, assign) BOOL    _animated;
@property (nonatomic, assign) NSInteger iconIndex;
@property (readwrite, nonatomic, copy) GridentAnimation gridentAnimation; // 渐变动画

- (void) setImageFromUrl:(BOOL) animated withUrl:(NSString *)iconUrl;

- (void)setImageWithURL:(NSURL *)url;
- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder;
- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder zoom:(BOOL)zoomStatus;
- (void)cancelCurrentImageLoad;
- (BOOL)isLoad;

-(void)scaleToSize:(CGSize)size;
@end
